package com.hgx.lc.core.application.initializing;

import cn.hutool.db.ds.DSFactory;
import com.hgx.lc.core.infrastructure.persistence.factory.DruidCustomDSFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * Description:
 * author: HGX
 * DateTime: 2020-12-01 14:44
 */
@Component
public class InitializingImplement implements InitializingBean {

    @Override
    public void afterPropertiesSet() {
        DruidCustomDSFactory druidCustomDSFactory = new DruidCustomDSFactory();
        DSFactory.setCurrentDSFactory(druidCustomDSFactory);
    }
}
